package HomeWork.chapter05.Test02;

/**
 * Enjoy programming!!!
 * Time: 2021/11/30 -  19:34
 */
public class Father {
    public int f(int a1, int b1) {
        if(a1 < b1){
            int temp = a1;
            a1 = b1;
            b1 = temp;
        }
        while(a1 % b1 != 0){
            int temp = a1 % b1;
            a1 = b1;
            b1 = temp;
        }
        return b1;
    }
}
